package cn.tedu.charging.order.mqtt;

import cn.tedu.charging.order.repository.FailBillRepo;
import cn.tedu.charging.order.repository.SuccessBillRepo;
import cn.tedu.charging.order.service.OrderConsumerService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * 封装钩子
 */
@Component
@Data
public class MqttContextHook {
    @Autowired
    private OrderConsumerService orderConsumerService;
    @Autowired
    private RedisTemplate redisTemplate;
    // 这俩是示例，其实并不会用……
    @Autowired
    private SuccessBillRepo successBillRepo;
    @Autowired
    private FailBillRepo failBillRepo;
    // ...（还可以增加更多钩子，只要是容器Bean对象，都可以钩过来）
}
